<h1>Departments</h1>
<table>
	<tr>
		<th>ID</th>
		<th>Name</th>
		<th></th>
	</tr>

	<?php foreach ($departments as $department): ?>
	<tr>
		<td><?php echo $department['Department']['id']; ?></td>
		<td><?php echo $department['Department']['name']; ?></td>
		<td>
			<?php echo $html->link('View', '/departments/view/'.$department['Department']['id']); ?>
			<?php echo $html->link('Edit', '/departments/edit/'.$department['Department']['id']); ?>
		</td>
	</tr>
	<?php endforeach; ?>

</table>